import { post } from '@/api/http'

// 列表查询
export const getList = (data) => post({ url: '/orderRecord/pageList', data })

// 获取页面统计数量
export const getNums = (data) => post({ url: '/orderRecord/findCount', data })

// 确认流水
export const confirmTurnover = (data) => post({ url: '/orderRecord/confirm', data })

// 撤销
export const revoke = (data) => post({ url: '/orderRecord/cancel', data })

// 批量确认
export const batchConfirm = (data) => post({ url: '/orderRecord/batchConfirm', data })

// 获取批量确认的金额
export const getBatchCost = (data) => post({ url: '/orderRecord/getRecordIdByList', data })

/**
 * @description: 驳回
 * @param data
 * @return Promise
 */
export const reject = (data) => post({ url: '/orderRecord/reject', data })

// 修改佣金
export const editCommission = (data) => post({ url: '/orderRecord/editCommission', data })

// 获取费用详情
export const getFeeDetail = (data) => post({ url: '/orderFee/toConfirm', data })

// 查询详情
export const getOrderRecordDetail = (data) => post({ url: '/orderRecord/detail', data })

// 修改信息
export const updateRecord = (data) => post({ url: '/orderRecord/update', data })

// 运营成本详情
export const getOperateCostDetail = (data) => post({ url: '/cost/detail', data })

// 导出流水
export const exportTurnover = (data) => post({ url: '/orderRecord/export', data })

// 查询商户所有收支帐号
export const getTenantAllAccount = (data) => post({ url: '/inExpAccount/getTenantAllAccount', data })

// 收支方式 
export const getWayByAccount = (data) => post({ url: '/inExpAccount/getWayByAccount', data })
